import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/move',
    name: 'Move',
    // component: Move
    component: () => import(/* webpackChunkName: "about" */ '../views/Move.vue')
  },
  {
    path: '/answer',
    name: 'Answer',
    component: () => import(/* webpackChunkName: "about" */ '../views/Answer.vue')
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import(/* webpackChunkName: "about" */ '../views/Article.vue')
  },
  {
    path: '/ask',
    name: 'Ask',
    component: () => import(/* webpackChunkName: "about" */ '../views/Ask.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
